GtkBox: make get_path_for_child() work if there are internal children
authorMichael Natterer <mitch@gimp.org>
Sun, 25 Sep 2011 22:46:16 +0000 (00:46 +0200)
committerMichael Natterer <mitch@gimp.org>
Sun, 25 Sep 2011 22:52:28 +0000 (00:52 +0200)
commita6151ebb9566ed39a6b100d1cca6d5eae7246201
tree743a234020bf2ddd57b5a0c28d6ded2ff75794e1
parent66becfdab111319f281f222129ba35e840b63cc6
GtkBox: make get_path_for_child() work if there are internal children

Use foreach() instead of forall() to find the child's siblings
because internal children of subclasses have no sibling relation
to the box' children. Also deal with the subclass failing to
implement get_path_for_child(). This caused an infinite widget
path invalidation loop of sorts with GimpMessageBox, which is a
vertical box with a decorative icon to the left.
gtk/gtkbox.c